package cn.chencaiju.day09;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;

public class JavaFxGenericTest extends Application {
	public static void main(String[] args) {
		launch(args);
	}
	@Override
	public void start(Stage primaryStage) throws Exception {
//		Scene scene=new Scene(new MyLabel<String>("123"),300,400);
//		Scene scene=new Scene(new MyLabel<Integer>(123),300,400);
		Scene scene=new Scene(new MyLabel<Double>(123.0013),300,400);
		primaryStage.setScene(scene);
		primaryStage.show();
	}
	class MyLabel<T> extends Label{
//		private T message;

		public MyLabel(T message) {
			super(String.valueOf(message));
//			setText(message);
//			this.message = message;
		}
		
	}


}
